Leetcode 1310 c solution

welcome to shbcf.ru